#include<bits/stdc++.h>

using pii = std::pair<int, int>;
using i64 = long long;
using u64 = unsigned long long;

#define for_range(i, l, r) for(int i = (l); i < (r); i++)
#define rfor_range(i, l, r) for(int i = (r)-1; i >= (l); i--)
#define for_each(i, l, r) for(int i = (l); i <= (r); i++)
#define rfor_each(i, l, r) for(int i = (r); i >= (l); i--)

#define chmin(a, b) a = std::min(a, (b))
#define chmax(a, b) a = std::max(a, (b))
#define all(a) a.begin(), a.end()

void solve(){
    int N;
    std::cin >> N;
    std::map<int, int> cnt;
    for_range(i, 0, N){
        int x;
        std::cin >> x;
        cnt[x]++;
    }

    int now = 0;
    for(pii p_cnt : cnt){
        int num  = p_cnt.second;
        now = std::max(0, now - num);
        now += num;
    }
    std::cout << now << "\n";
}

int main(){
    assert(freopen("duel.in", "r", stdin));
    assert(freopen("duel.out", "w", stdout));

    std::cin.tie(0);
    std::ios::sync_with_stdio(0);

    int T = 1;
    // std::cin >> T;
    for_range(t, 0, T){
        solve();
    }
    return 0;
}
// g++ duel.cpp -O2 -Wall -Wextra -Wshadow -Wconversion -fsanitize=undefined -fsanitize=address -D__GLIBCXX_DEBUG -o duel
// /usr/bin/time